package com.jt.service;

import com.jt.dao.UserDao;
import com.jt.dao.UserDaoImpl;

public class UserService {

    //创建UserDao类型属性,生成set方法
    private UserDao userDao;
    public void setUserDao(UserDao userDao) {
        this.userDao = userDao;
    }
    public void add(){
        System.out.println("service add...");

        userDao.update();

    }
}
